Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Texture Wrapping Values

A drawing engine may support OpenGL texture wrapping, in which case you might need to specify a texture wrapping mode in the u and v parametric directions. You specify an engine's texture wrapping modes by assigning a value to its kQATagGL_TextureWrapU and kQATagGL_TextureWrapV state variables. The default value of both these variables for a drawing engine that supports OpenGl texture wrapping is kQAGL_Repeat . You can use the following constants to specify a texture wrapping mode.

#define kQAGL_Repeat                                0
#define kQAGL_Clamp                                 1

Constant descriptions

kQAGL_Repeat
The integer part of a u or v coordinate is ignored, thereby causing a texture to be repeated across the surface of an object.
kQAGL_Clamp
The u or v coordinates are clamped to the range [0, 1]. This mode prevents wrapping artifacts from occurring when a single texture is mapped onto an object.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |